
<table border="1px">
		<thead>
		<tr>
		<th><a href="<?php echo site_url('owners'); ?>/sort">Owner Name</a></th>
		<th>Pet Name</th>
		<th>Add Pet</th>
		<th>View</th>
		</tr>
		</thead>
<?php foreach ($owners as $array => $object): ?>
<tr>
<td><?php echo "$object->fullname"; ?></td>
<td><?php echo "$object->name"; ?></td>
<td>
		<a href="<?php echo site_url('pets'); ?>/add/<?php echo "$object->owner_id"; ?>"<?php echo img('images/eye.jpg');?></a>
</td>
<td>
		<a href="<?php echo site_url('owners'); ?>/detail/<?php echo "$object->owner_id"; ?>"<?php echo img('images/pencil.png');?></a>
</td>
</tr>
<?php endforeach; ?>
</table>